package com.quick.job;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author wangxin86
 * @title: JobRegistryProperties
 * @description: TODO
 * @date 2019/7/29 15:16
 */
@Component
@ConfigurationProperties(prefix = "job.reg")
@Data
public class JobRegistryProperties {
    private String serverList;
    private String namespace;
    private Boolean autoStart;

    private Integer shardingTotalCount;

    private String shardingItemParameters;

    /**
     * 单机多线程参数
     */
    private Integer corePoolSize;

    private Integer maxPoolSize;

    private Integer queueSize;

    private Long keepAliveSeconds;
}
